package com.javatest.validate;

import java.util.Collections;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @date 2020-11-10 下午4:07
 */
public class ValidatorTest15 {
    public static void main(String[] args) {
        Room2 room = new Room2();
        room.setStudentNames(Collections.singletonList("YourBatman"));
        ValidationUtils.printViolations(ValidationUtils.obtainValidator()
                .validate(room));
    }
}
